<!--
 * @Author: adolphus adolphus520@163.com
 * @Date: 2022-12-10 00:33:42
 * @LastEditors: 姚杰鸿
 * @LastEditTime: 2024-06-14 11:46:11
 * @Description: file content
-->
<template>
  <el-avatar :size="size" src="/assets/avatar.jpg" @error="errorHandler2">
    <img src="/assets/pic.png" />
  </el-avatar>
</template>

<script lang="ts" setup>
const avatarProps2 = defineProps({
    size: {
      type: Number,
      default: 50,
    },
  }),
  errorHandler2 = () => true;
</script>
